﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CVSA.Suporte.Sinacor.BMFBovespa.Negocio;
using CVSA.Suporte.Sinacor.BMFBovespa.Entidades;
using System.Diagnostics;

namespace CVSA.Suporte.Sinacor.BMFBovespa.ConsultaRemedy
{
    public partial class ManualSync : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void cmdConfirmar_Click(object sender, EventArgs e)
        {
            Remedy remedy = new Remedy();
            List<Chamado> chamados = new List<Chamado>();
            try
            {

                chamados = remedy.ObterDados(txtUsuario.Text, txtSenha.Text);
                remedy.Sincronizar(chamados);
            }
            catch (Exception ex)
            {
                
              
                
            }

            finally
            {
                remedy = null;
                chamados = null;
            }
        }
    }
}
